home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter me
- if marker(0) = label("play") then
- whichSprite = me.spriteNum
- set the cursor of sprite whichSprite to 280
- end if
- end
-
- on beginSprite me
- sprite(me.spriteNum).cursor = 280
- end
-
- on endSprite me
- sprite(me.spriteNum).cursor = 0
- end
-
- on mouseDown me
- global gGameSol, gInactivities, gStartedPlaying, gNumberOfMovesLeft
- if not ((marker(0) = label("lose")) or (marker(0) = label("win"))) then
- whichSprite = me.spriteNum
- gInactivities = VOID
- gStartedPlaying = 1
- if gGameSol = whichSprite then
- whichBug = string(random(2))
- set the member of sprite whichSprite to "bug" & whichBug
- sprite(26).member = "legs"
- sprite(26).locH = sprite(whichSprite).locH
- sprite(26).locV = sprite(whichSprite).locV
- sprite(whichSprite).cursor = 0
- if sprite(23).memberNum > 0 then
- if "29,30" contains string(gGameSol) then
- sprite(23).member = "tree_uc"
- else
- sprite(23).member = "tree_smile"
- end if
- sprite(23).nextExpressionTime = -1
- end if
- puppetSound("66_caught0" & string(random(2)))
- if marker(0) < label("glinda_demo") then
- go("win")
- else
- go(the frame + 1)
- end if
- else
- puppetSound("66_wrong0" & string(random(2)))
- gNumberOfMovesLeft = gNumberOfMovesLeft - 1
- if gNumberOfMovesLeft = 0 then
- sprite(26).member = "bug_drop.01"
- sprite(26).locH = sprite(gGameSol).locH
- sprite(26).locV = sprite(gGameSol).locV
- go("lose")
- end if
- end if
- end if
- end
-